package com.ruoyi.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售订单对象 erp_order
 * 
 * @author ruoyi
 * @date 2024-04-25
 */
public class ErpOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 单据编号 */
    @Excel(name = "单据编号")
    private String orderCode;

    /** 单据日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 销售人员 */
    @Excel(name = "销售人员")
    private Long salesperson;

    /** 折扣金额 */
    @Excel(name = "折扣金额")
    private BigDecimal discountAmount;

    /** 收款金额 */
    @Excel(name = "收款金额")
    private BigDecimal payAmount;

    /** 定金 */
    @Excel(name = "定金")
    private BigDecimal deposit;

    /** 客户 */
    @Excel(name = "客户")
    private Long customerId;

    /** 结算账号 */
    @Excel(name = "结算账号")
    private Long settlementAccount;

    /** 状态 */
    @Excel(name = "状态")
    private Long orderStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderCode(String orderCode) 
    {
        this.orderCode = orderCode;
    }

    public String getOrderCode() 
    {
        return orderCode;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setSalesperson(Long salesperson) 
    {
        this.salesperson = salesperson;
    }

    public Long getSalesperson() 
    {
        return salesperson;
    }
    public void setDiscountAmount(BigDecimal discountAmount) 
    {
        this.discountAmount = discountAmount;
    }

    public BigDecimal getDiscountAmount() 
    {
        return discountAmount;
    }
    public void setPayAmount(BigDecimal payAmount) 
    {
        this.payAmount = payAmount;
    }

    public BigDecimal getPayAmount() 
    {
        return payAmount;
    }
    public void setDeposit(BigDecimal deposit) 
    {
        this.deposit = deposit;
    }

    public BigDecimal getDeposit() 
    {
        return deposit;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setSettlementAccount(Long settlementAccount) 
    {
        this.settlementAccount = settlementAccount;
    }

    public Long getSettlementAccount() 
    {
        return settlementAccount;
    }
    public void setOrderStatus(Long orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Long getOrderStatus() 
    {
        return orderStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderCode", getOrderCode())
            .append("orderTime", getOrderTime())
            .append("salesperson", getSalesperson())
            .append("discountAmount", getDiscountAmount())
            .append("remark", getRemark())
            .append("payAmount", getPayAmount())
            .append("deposit", getDeposit())
            .append("customerId", getCustomerId())
            .append("settlementAccount", getSettlementAccount())
            .append("orderStatus", getOrderStatus())
            .append("createBy", getCreateBy())
            .toString();
    }
}
